﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using AllEntity;

namespace MyWCFServer
{
    [ServiceContract]
    public interface IMyService
    {
        [OperationContract]
        Person GetSignlePerson();

        [OperationContract]
        List<Person> GetAllPerson();

        [OperationContract]
        string GetPersonAgeByName(string name);

        [OperationContract]
        bool InsertPerson(Person person);
    }
}
